<?php
$poster = $item -> getPoster();
$ufi = $item -> getHtmlId();
if (!isset($inn))
{
	$inn = 1;
}
?>
<?php if($inn):
?>
<div id="<?php echo $ufi?>">
	<?php endif; ?>
	<form aria-submit="async" action="<?php echo Nuo::getUrl('user/ajax/friend/request'); ?>" method="post">
		<span class="bold"> <?php echo $poster; ?></span> requests you to be friend
		<div class="rfloat">
			<input type="hidden" class="uiHidden" name="request-id" value="<?php echo $item -> getItemId(); ?>" />
			<input type="hidden" class="uiHidden" name="id" value="<?php echo $poster -> getItemId(); ?>" />
			<input type="hidden" class="uiHidden uiHiddenAct" name="act" value="" />
			<input type="hidden" class="uiHidden" name="html_id" value="#<?php echo $ufi; ?>" />
			<a class="uiSingleButton uiButton uiButtonLarge uiButtonSubmit" aria-click="jscript" aria-cb="form.submit" aria-act="confirm"><b class="uiButtonText">Confirm</b></a>
			<a class="uiSingleButton uiButton uiButtonLarge" aria-click="jscript" aria-cb="form.submit" aria-act="pendding">
				<b class="uiButtonText">Not Now</b>
			</a>
		</div>
	</form>
	<?php if($inn):
	?>
</div>
<?php endif; ?>
